@extends('admin.base')

@section('content')
    <div class="layui-card" style="margin-top: 20px;">
        <div class="layui-card-body">
            <div class="layui-form">
                {{csrf_field()}}
                @if(auth("admin")->user()['id'] == 1)
                    <div class="layui-form-item">
                        <label class="layui-form-label">管理员</label>
                        <div class="layui-input-inline layui-width-300">
                            <select name="adminUserId">
                                @foreach($getAdminUserData as $val)
                                <option value="{{$val['id']}}">{{$val['username']}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                @endif
                <div class="layui-form-item">
                    <label class="layui-form-label">网站风格</label>
                    <div class="layui-input-inline layui-width-300">
                        <select name="websites_style_id">
                            @foreach($websiteStyleData as $val)
                            <option value="{{$val['id']}}">{{$val['names']}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label for="" class="layui-form-label">网站名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="names" value=""  lay-verify="required" placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">网站域名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="domains" value=""  lay-verify="required" placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">网站邮箱</label>
                    <div class="layui-input-inline">
                        <input type="text" name="emails" value=""   placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">网站电话</label>
                    <div class="layui-input-inline">
                        <input type="text" name="phones" value=""   placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">网站地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="address" value=""  placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">标题</label>
                    <div class="layui-input-inline">
                        <input type="text" name="titles" value=""  placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">关键词</label>
                    <div class="layui-input-inline">
                        <input type="text" name="keywords" value=""  placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">版权信息</label>
                    <div class="layui-input-inline">
                        <input type="text" name="copyright_info" value=""   placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">ICP信息</label>
                    <div class="layui-input-inline">
                        <input type="text" name="copyright_icp" value=""   placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">简介</label>
                    <div class="layui-input-inline" style="width:300px;">
                        <textarea placeholder="请输入内容" name="description" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">关于我们</label>
                    <div class="layui-input-inline" style="width:300px;">
                        <textarea placeholder="关于我们" name="about_us" class="layui-textarea"></textarea>
                    </div>
                </div>
                <input type="hidden" value="15" id="tong">
                <div class="layui-form-item"  style="width:80%">
                    <label class="layui-form-label required">网站logo</label>
                    <div class="layui-input-block">
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-btn-sm" id="uploadPic">上传</button>
                            <div class="layui-upload-list">
                                <ul id="layui-upload-box" class="layui-clear">
                                </ul>
                                <input type="hidden" name="image_logo" id="thumb"  value="" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formSubmitData" wy-data="{url:'{{route('admin.websites.store')}}'}" ><i class="fa fa-save"></i> 保存</button>
                        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary layui-btn-sm"><i class="fa fa-reply-all" aria-hidden="true"></i>  取消</a>
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection

@section('script')
    @include('admin.common._js_upload')
@endsection

